<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "in_point".
 *
 * @property integer $day_id
 * @property string $id
 * @property string $count
 */
class InPoint extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'in_point';
    }

    /**
     * @return \yii\db\Connection the database connection used by this AR class.
     */
    public static function getDb()
    {
        return Yii::$app->get('bigdata');
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['day_id', 'count'], 'integer'],
            [['id'], 'string'],
            [['count'], 'required'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'day_id' => 'Day ID',
            'id' => 'ID',
            'count' => 'Count',
        ];
    }
}
